import requests
import pprint

def req():

    files = {
        "file": ("1.png", open("C:\Users\汤姆布利伯\Desktop\1.png", "rb"), " imags/png")
    }


    r = requests.post("https://httpbin.ceshiren.com/post",files=files)
    assert r.status_code == 200

    pprint.pprint(r.json())
req()
